<template>
  <div>
    订单修改

    {{ detail }}
  </div>
</template>

<script>
import {getOrderDetailReq} from '@/api/order'
export default {
  data() {
    return {
      id: '',
      //数据占位
      detail: {},
    }
  },
  methods: {
    async getData() {
      let res = await getOrderDetailReq({
        id: this.id,
      })
      //数据赋值
      this.detail = res.data.data
    },
  },
  created() {
    this.id = this.$route.params.id

    this.getData()
  },
}
</script>

<style lang="scss" scoped></style>
